package com.xusheng.cli.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 支付方式
 *
 * @author jzw
 * @since 2022-01-11 10:13
 */
public enum PaySolution {
    /**
     * 待付款
     */
    ALIPAY_PAYMENT(1, "支付宝", "ali_scan"),
    WX_PAYMENT(2, "微信", "wx_scan"),
    UPAY_PAYMENT(3, "网银", "upay_scan"),
    H5_WX(4, "H5微信", "h5_wx"),
    H5_ALI(5, "H5支付宝", "h5_ali"),
    H5_UPAY(6, "H5快捷支付", "h5_upay"),
    BANK_PAYMENT(7, "银行卡", "bank"),
    SIGN_PAYMENT(8, "绑卡协议", "sign"),
    ALI_PAY(11, "支付宝", "alipay"),
    WX_PAY(12, "微信支付", "wxpay"),
    QQ_PAY(13, "QQ钱包", "qqpay");

    PaySolution(int code, String description, String key) {
        this.code = code;
        this.description = description;
        this.key = key;
    }

    @EnumValue
    private final int code;

    private final String description;

    @JsonValue
    private final String key;

    public int getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }

    public String getKey() {
        return key;
    }
}
